package com.wn.gateway;

import com.alibaba.cloud.nacos.ribbon.NacosRule;
import com.netflix.loadbalancer.IRule;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.Bean;

/**
 * @author yellow Docter
 * @date 2022 -08-29
 * @desc
 */
@EnableDiscoveryClient    // 服务发现
@SpringBootApplication
public class GateWayApplication {

    public static void main(String[] args) {

        SpringApplication.run(GateWayApplication.class,args);

    }

//    // 负载均衡策略
//    @Bean
//    public IRule loadBalanceRule(){
//        return new NacosRule();
//    }

}
